package com.yesep.learn.design.common.pojo;


import com.yesep.learn.design.common.*;

public abstract class Animal implements IRace {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void speak();

    @Override
    public String toString() {
        return String.format("%s{name='%s'}", getClass().getSimpleName(), name);
    }
}
